<script type="text/javascript" src="<?php echo URL;?>/js/jFriendly.js"></script>

    <h1>Formulario de Registro de Alojamiento</h1>
	<div class="alert alert-info">
		Si Ud. posee un alojamiento turístico, por favor regístrese completamente gratis!!
		<br>
		Antes de registrarse, por favor, recorra el nuestro portal, para asegurarse que no se encuentre registrado.
		<br>
		<strong>La cuenta GRATUITA, lo habilita a recibir <?php echo CORREOS_GRATIS;?> consultas mensuales.!</strong>
	</div>	
	<br><br>
	<?php if(!empty($error)) {?>
		<div class="alert alert-danger">
		  <button type="button" class="close" data-dismiss="alert">&times;</button>
		  <strong>ERROR!!</strong> <?php echo $error;?>
		</div>	
	<?php } elseif(!empty($msg)) { ?>
	
	<?php } ?>
    

    <form id="frm_registro" method="post" action="<?php echo URL;?>/account/registro.php" class="form-horizontal">

		<div class="control-group">
			<label class="control-label" for="inputCategoria">Categoría de Alojamiento:</label>
			<div class="controls">
				<?php echo $select_familia;?>  
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputEmail">Email:</label>
			<div class="controls">
			  <input type="email" class='input-xlarge' name='data[email]' id="inputEmail" required value='<?php echo $data['email'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputTitulo">Nombre del Alojamiento:</label>
			<div class="controls">
			  <input type="text"  class='input-xlarge' name='data[titulo]' id="titulo" required maxlength='60' value='<?php echo $data['titulo'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputUrlAmigable">URL-Amigable:</label>
			<div class="controls">
			  <input type='text'  class='input-xxlarge' name='data[urlamigable]' id="urlamigable" value="<?php echo $data['urlamigable'];?>" readonly style='font-weight:bold;color:#E77817;' value='<?php echo $data['urlamigable'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputPassword">Contraseña:</label>
			<div class="controls">
			  <input type="password"  class='input' name='data[password]' id="password" placeholder="Contraseña" required maxlength='60' value='<?php echo $data['password'];?>'>
			  <input type="password"  class='input' name='data[reingreso]' id="reingreso" placeholder="Reingrese la Contraseña" required maxlength='60' value='<?php echo $data['reingreso'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputTelefono">Teléfono:</label>
			<div class="controls">+54 
			  <input type="text"  class='input' name='data[telefono1]' id="telefono1" required maxlength='60' value='<?php echo $data['telefono1'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputWeb">Sitio Web:</label>
			<div class="controls">
			  <input type="text"  class='input-xlarge' name='data[web]' id="web" required maxlength='150' value='<?php echo $data['web'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputDireccion">Dirección:</label>
			<div class="controls">
			  <input type="text"  class='input-xlarge' name='data[direccion]' id="direccion" required maxlength='150' value='<?php echo $data['direccion'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputDireccion">Código Postal:</label>
			<div class="controls">
			  <input type="text"  class='input-small' name='data[codigo_postal]' id="codigo_postal" required maxlength='10' value='<?php echo $data['codigo_postal'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputLocalidad">Localidad:</label>
			<div class="controls">
                <select name='data[localidad]' class='input-xlarge' id='localidad'>
                    <?php foreach($Localidades as $clave=>$valor){
                    if ($clave==$data['localidad']) { $sel ='selected=selected';} else {$sel='';}
                        echo "<option value='$clave' $sel>$valor</option>";
                    } ?>
                </select>
			  
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputProvincia">Provincia:</label>
			<div class="controls">
				<select name='data[provincia]' id='provincia' class='input-xlarge'>
					<option value='Santa Fe' >Santa Fe</option>
					<option value='Entre Ríos' >Entre Ríos</option>
				</select>
			</div>
		</div>

		<div class="control-group">
			<div class="controls">
				<span class="help-block">Todos los datos son obligatorios!</span>
				<input type='submit' name='submit' value='Registrarse' class='btn btn-primary' title="Registrarse" />
			</div>
		</div>




	</form>
    
<script>
    $(document).ready(function(){
        $("#titulo").jFriendly("#urlamigable",true);        
    });
</script>
